package com.sinovatech.ologger.core.util;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {

	public String getPropertiesInfo(String propertiesUrl, String key) {
		InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(propertiesUrl);
		Properties properties = new Properties();
		String result = null;
		try {
			properties.load(inputStream);
			result = properties.get(key).toString();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}
}
